
function save() {
    let data = new FormData();
    data.append("name",$("#navName").val());
    data.append("href",$("#href").val());
    data.append("status", $("input:radio[name='status']:checked").val());
    data.append("typeId",$("#typeId").val());
    data.append("img", $("#img")[0].files[0]);
    data.append("content",edit.txt.html())
    let result = myImgAjax("/adminFile/nav/add",data,"post");
    if(result.result == "success"){
        alert("新增成功！");
        x_admin_close();
        x_admin_father_reload();
    }else{
        alert("新增失败！");
    }
}
